﻿/// <reference path="../jquery-1.7.1.js" />

$(document).ready(function () {

    $('form').submit(function () {
        $('#appNotifications option').prop('selected', true);
    })

    $('span#butterInLeft').click(function () {
        //var arrItems = [];
        //var arrTexts = [];
        //$('#appNotifications :selected').each(function (i, selected) {
        //    arrItems[i] = $(selected).val();
        //})

        //if (arrItems.length == 0) {
        //    alert('пусто');
        //    return;
        //}

        $('#appNotifications :selected').appendTo('#allNotifications');
    })

    $('span#butterInRight').click(function () {
        $('#allNotifications :selected').appendTo('#appNotifications');
    })

})
